List of Locations and Languages for DataForSEO Clickstream Data API
Using this endpoint you can get the full list of locations and languages supported in DataForSEO Clickstream Data API.
Using this endpoint you can get the full list of locations and languages supported in DataForSEO Clickstream Data API.
Instead of ‘login’ and ‘password’ use your credentials from https://app.dataforseo.com/api-dashboard
<?php // You can download this file from here https://cdn.dataforseo.com/v3/examples/php/php_RestClient.zip require('RestClient.php'); $api_url = 'https://api.dataforseo.com/'; // Instead of 'login' and 'password' use your credentials from https://app.dataforseo.com/api-dashboard $client = new RestClient($api_url, null, 'login', 'password'); try { // using this method you can get a list of locations and languages // GET /v3/keywords_data/clickstream_data/locations_and_languages $result = $client->get('/v3/keywords_data/clickstream_data/locations_and_languages'); print_r($result); // do something with result } catch (RestClientException $e) { echo "\n"; print "HTTP code: {$e->getHttpCode()}\n"; print "Error code: {$e->getCode()}\n"; print "Message: {$e->getMessage()}\n"; print $e->getTraceAsString(); echo "\n"; } $client = null; ?>
The above command returns JSON structured like this:
{ "version": "0.1.20240801", "status_code": 20000, "status_message": "Ok.", "time": "0.2685 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "08021455-1535-0590-0000-2a03edd1dc26", "status_code": 20000, "status_message": "Ok.", "time": "0 sec.", "cost": 0, "result_count": 90, "path": [ "v3", "keywords_data", "clickstream_data", "locations_and_languages" ], "data": { "api": "keywords_data", "function": "locations_and_languages", "se": "clickstream_data" }, "result": [ { "location_code": 2012, "location_name": "Algeria", "location_code_parent": null, "country_iso_code": "DZ", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" }, { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2024, "location_name": "Angola", "location_code_parent": null, "country_iso_code": "AO", "location_type": "Country", "available_languages": [ { "language_name": "Portuguese", "language_code": "pt" } ] }, { "location_code": 2031, "location_name": "Azerbaijan", "location_code_parent": null, "country_iso_code": "AZ", "location_type": "Country", "available_languages": [ { "language_name": "Azeri", "language_code": "az" } ] }, { "location_code": 2032, "location_name": "Argentina", "location_code_parent": null, "country_iso_code": "AR", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2036, "location_name": "Australia", "location_code_parent": null, "country_iso_code": "AU", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2040, "location_name": "Austria", "location_code_parent": null, "country_iso_code": "AT", "location_type": "Country", "available_languages": [ { "language_name": "German", "language_code": "de" } ] }, { "location_code": 2048, "location_name": "Bahrain", "location_code_parent": null, "country_iso_code": "BH", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2050, "location_name": "Bangladesh", "location_code_parent": null, "country_iso_code": "BD", "location_type": "Country", "available_languages": [ { "language_name": "Bengali", "language_code": "bn" } ] }, { "location_code": 2051, "location_name": "Armenia", "location_code_parent": null, "country_iso_code": "AM", "location_type": "Country", "available_languages": [ { "language_name": "Armenian", "language_code": "hy" } ] }, { "location_code": 2056, "location_name": "Belgium", "location_code_parent": null, "country_iso_code": "BE", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" }, { "language_name": "Dutch", "language_code": "nl" }, { "language_name": "German", "language_code": "de" } ] }, { "location_code": 2068, "location_name": "Bolivia", "location_code_parent": null, "country_iso_code": "BO", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2076, "location_name": "Brazil", "location_code_parent": null, "country_iso_code": "BR", "location_type": "Country", "available_languages": [ { "language_name": "Portuguese", "language_code": "pt" } ] }, { "location_code": 2100, "location_name": "Bulgaria", "location_code_parent": null, "country_iso_code": "BG", "location_type": "Country", "available_languages": [ { "language_name": "Bulgarian", "language_code": "bg" } ] }, { "location_code": 2104, "location_name": "Myanmar (Burma)", "location_code_parent": null, "country_iso_code": "MM", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2116, "location_name": "Cambodia", "location_code_parent": null, "country_iso_code": "KH", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2120, "location_name": "Cameroon", "location_code_parent": null, "country_iso_code": "CM", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2124, "location_name": "Canada", "location_code_parent": null, "country_iso_code": "CA", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2144, "location_name": "Sri Lanka", "location_code_parent": null, "country_iso_code": "LK", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2152, "location_name": "Chile", "location_code_parent": null, "country_iso_code": "CL", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2158, "location_name": "Taiwan", "location_code_parent": null, "country_iso_code": "TW", "location_type": "Region", "available_languages": [ { "language_name": "Chinese (Traditional)", "language_code": "zh-TW" } ] }, { "location_code": 2170, "location_name": "Colombia", "location_code_parent": null, "country_iso_code": "CO", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2188, "location_name": "Costa Rica", "location_code_parent": null, "country_iso_code": "CR", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2191, "location_name": "Croatia", "location_code_parent": null, "country_iso_code": "HR", "location_type": "Country", "available_languages": [ { "language_name": "Croatian", "language_code": "hr" } ] }, { "location_code": 2196, "location_name": "Cyprus", "location_code_parent": null, "country_iso_code": "CY", "location_type": "Country", "available_languages": [ { "language_name": "Greek", "language_code": "el" }, { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2203, "location_name": "Czechia", "location_code_parent": null, "country_iso_code": "CZ", "location_type": "Country", "available_languages": [ { "language_name": "Czech", "language_code": "cs" } ] }, { "location_code": 2208, "location_name": "Denmark", "location_code_parent": null, "country_iso_code": "DK", "location_type": "Country", "available_languages": [ { "language_name": "Danish", "language_code": "da" } ] }, { "location_code": 2218, "location_name": "Ecuador", "location_code_parent": null, "country_iso_code": "EC", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2222, "location_name": "El Salvador", "location_code_parent": null, "country_iso_code": "SV", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2233, "location_name": "Estonia", "location_code_parent": null, "country_iso_code": "EE", "location_type": "Country", "available_languages": [ { "language_name": "Estonian", "language_code": "et" } ] }, { "location_code": 2246, "location_name": "Finland", "location_code_parent": null, "country_iso_code": "FI", "location_type": "Country", "available_languages": [ { "language_name": "Finnish", "language_code": "fi" } ] }, { "location_code": 2250, "location_name": "France", "location_code_parent": null, "country_iso_code": "FR", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2276, "location_name": "Germany", "location_code_parent": null, "country_iso_code": "DE", "location_type": "Country", "available_languages": [ { "language_name": "German", "language_code": "de" } ] }, { "location_code": 2288, "location_name": "Ghana", "location_code_parent": null, "country_iso_code": "GH", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2300, "location_name": "Greece", "location_code_parent": null, "country_iso_code": "GR", "location_type": "Country", "available_languages": [ { "language_name": "Greek", "language_code": "el" }, { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2320, "location_name": "Guatemala", "location_code_parent": null, "country_iso_code": "GT", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2344, "location_name": "Hong Kong", "location_code_parent": null, "country_iso_code": "HK", "location_type": "Region", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Chinese (Traditional)", "language_code": "zh-TW" } ] }, { "location_code": 2348, "location_name": "Hungary", "location_code_parent": null, "country_iso_code": "HU", "location_type": "Country", "available_languages": [ { "language_name": "Hungarian", "language_code": "hu" } ] }, { "location_code": 2356, "location_name": "India", "location_code_parent": null, "country_iso_code": "IN", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Hindi", "language_code": "hi" } ] }, { "location_code": 2360, "location_name": "Indonesia", "location_code_parent": null, "country_iso_code": "ID", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Indonesian", "language_code": "id" } ] }, { "location_code": 2372, "location_name": "Ireland", "location_code_parent": null, "country_iso_code": "IE", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2376, "location_name": "Israel", "location_code_parent": null, "country_iso_code": "IL", "location_type": "Country", "available_languages": [ { "language_name": "Hebrew", "language_code": "he" }, { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2380, "location_name": "Italy", "location_code_parent": null, "country_iso_code": "IT", "location_type": "Country", "available_languages": [ { "language_name": "Italian", "language_code": "it" } ] }, { "location_code": 2384, "location_name": "Cote d'Ivoire", "location_code_parent": null, "country_iso_code": "CI", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2392, "location_name": "Japan", "location_code_parent": null, "country_iso_code": "JP", "location_type": "Country", "available_languages": [ { "language_name": "Japanese", "language_code": "ja" } ] }, { "location_code": 2398, "location_name": "Kazakhstan", "location_code_parent": null, "country_iso_code": "KZ", "location_type": "Country", "available_languages": [ { "language_name": "Russian", "language_code": "ru" } ] }, { "location_code": 2400, "location_name": "Jordan", "location_code_parent": null, "country_iso_code": "JO", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2404, "location_name": "Kenya", "location_code_parent": null, "country_iso_code": "KE", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2410, "location_name": "South Korea", "location_code_parent": null, "country_iso_code": "KR", "location_type": "Country", "available_languages": [ { "language_name": "Korean", "language_code": "ko" } ] }, { "location_code": 2428, "location_name": "Latvia", "location_code_parent": null, "country_iso_code": "LV", "location_type": "Country", "available_languages": [ { "language_name": "Latvian", "language_code": "lv" } ] }, { "location_code": 2440, "location_name": "Lithuania", "location_code_parent": null, "country_iso_code": "LT", "location_type": "Country", "available_languages": [ { "language_name": "Lithuanian", "language_code": "lt" } ] }, { "location_code": 2458, "location_name": "Malaysia", "location_code_parent": null, "country_iso_code": "MY", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Malay", "language_code": "ms" } ] }, { "location_code": 2470, "location_name": "Malta", "location_code_parent": null, "country_iso_code": "MT", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2484, "location_name": "Mexico", "location_code_parent": null, "country_iso_code": "MX", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2504, "location_name": "Morocco", "location_code_parent": null, "country_iso_code": "MA", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" }, { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2528, "location_name": "Netherlands", "location_code_parent": null, "country_iso_code": "NL", "location_type": "Country", "available_languages": [ { "language_name": "Dutch", "language_code": "nl" } ] }, { "location_code": 2554, "location_name": "New Zealand", "location_code_parent": null, "country_iso_code": "NZ", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2558, "location_name": "Nicaragua", "location_code_parent": null, "country_iso_code": "NI", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2566, "location_name": "Nigeria", "location_code_parent": null, "country_iso_code": "NG", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2578, "location_name": "Norway", "location_code_parent": null, "country_iso_code": "NO", "location_type": "Country", "available_languages": [ { "language_name": "Norwegian (Bokmål)", "language_code": "nb" } ] }, { "location_code": 2586, "location_name": "Pakistan", "location_code_parent": null, "country_iso_code": "PK", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Urdu", "language_code": "ur" } ] }, { "location_code": 2591, "location_name": "Panama", "location_code_parent": null, "country_iso_code": "PA", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2600, "location_name": "Paraguay", "location_code_parent": null, "country_iso_code": "PY", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2604, "location_name": "Peru", "location_code_parent": null, "country_iso_code": "PE", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2608, "location_name": "Philippines", "location_code_parent": null, "country_iso_code": "PH", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Tagalog", "language_code": "tl" } ] }, { "location_code": 2616, "location_name": "Poland", "location_code_parent": null, "country_iso_code": "PL", "location_type": "Country", "available_languages": [ { "language_name": "Polish", "language_code": "pl" } ] }, { "location_code": 2620, "location_name": "Portugal", "location_code_parent": null, "country_iso_code": "PT", "location_type": "Country", "available_languages": [ { "language_name": "Portuguese", "language_code": "pt" } ] }, { "location_code": 2642, "location_name": "Romania", "location_code_parent": null, "country_iso_code": "RO", "location_type": "Country", "available_languages": [ { "language_name": "Romanian", "language_code": "ro" } ] }, { "location_code": 2682, "location_name": "Saudi Arabia", "location_code_parent": null, "country_iso_code": "SA", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2686, "location_name": "Senegal", "location_code_parent": null, "country_iso_code": "SN", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2688, "location_name": "Serbia", "location_code_parent": null, "country_iso_code": "RS", "location_type": "Country", "available_languages": [ { "language_name": "Serbian", "language_code": "sr" } ] }, { "location_code": 2702, "location_name": "Singapore", "location_code_parent": null, "country_iso_code": "SG", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Chinese (Simplified)", "language_code": "zh-CN" } ] }, { "location_code": 2703, "location_name": "Slovakia", "location_code_parent": null, "country_iso_code": "SK", "location_type": "Country", "available_languages": [ { "language_name": "Slovak", "language_code": "sk" } ] }, { "location_code": 2704, "location_name": "Vietnam", "location_code_parent": null, "country_iso_code": "VN", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Vietnamese", "language_code": "vi" } ] }, { "location_code": 2705, "location_name": "Slovenia", "location_code_parent": null, "country_iso_code": "SI", "location_type": "Country", "available_languages": [ { "language_name": "Slovenian", "language_code": "sl" } ] }, { "location_code": 2710, "location_name": "South Africa", "location_code_parent": null, "country_iso_code": "ZA", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2724, "location_name": "Spain", "location_code_parent": null, "country_iso_code": "ES", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2752, "location_name": "Sweden", "location_code_parent": null, "country_iso_code": "SE", "location_type": "Country", "available_languages": [ { "language_name": "Swedish", "language_code": "sv" } ] }, { "location_code": 2756, "location_name": "Switzerland", "location_code_parent": null, "country_iso_code": "CH", "location_type": "Country", "available_languages": [ { "language_name": "German", "language_code": "de" }, { "language_name": "French", "language_code": "fr" }, { "language_name": "Italian", "language_code": "it" } ] }, { "location_code": 2764, "location_name": "Thailand", "location_code_parent": null, "country_iso_code": "TH", "location_type": "Country", "available_languages": [ { "language_name": "Thai", "language_code": "th" } ] }, { "location_code": 2784, "location_name": "United Arab Emirates", "location_code_parent": null, "country_iso_code": "AE", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" }, { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2788, "location_name": "Tunisia", "location_code_parent": null, "country_iso_code": "TN", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" } ] }, { "location_code": 2792, "location_name": "Turkiye", "location_code_parent": null, "country_iso_code": "TR", "location_type": "Country", "available_languages": [ { "language_name": "Turkish", "language_code": "tr" } ] }, { "location_code": 2804, "location_name": "Ukraine", "location_code_parent": null, "country_iso_code": "UA", "location_type": "Country", "available_languages": [ { "language_name": "Ukrainian", "language_code": "uk" }, { "language_name": "Russian", "language_code": "ru" } ] }, { "location_code": 2807, "location_name": "North Macedonia", "location_code_parent": null, "country_iso_code": "MK", "location_type": "Country", "available_languages": [ { "language_name": "Macedonian", "language_code": "mk" } ] }, { "location_code": 2818, "location_name": "Egypt", "location_code_parent": null, "country_iso_code": "EG", "location_type": "Country", "available_languages": [ { "language_name": "Arabic", "language_code": "ar" }, { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2826, "location_name": "United Kingdom", "location_code_parent": null, "country_iso_code": "GB", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" } ] }, { "location_code": 2840, "location_name": "United States", "location_code_parent": null, "country_iso_code": "US", "location_type": "Country", "available_languages": [ { "language_name": "English", "language_code": "en" }, { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2854, "location_name": "Burkina Faso", "location_code_parent": null, "country_iso_code": "BF", "location_type": "Country", "available_languages": [ { "language_name": "French", "language_code": "fr" } ] }, { "location_code": 2858, "location_name": "Uruguay", "location_code_parent": null, "country_iso_code": "UY", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] }, { "location_code": 2862, "location_name": "Venezuela", "location_code_parent": null, "country_iso_code": "VE", "location_type": "Country", "available_languages": [ { "language_name": "Spanish", "language_code": "es" } ] } ] } ] }
As a response of the API server, you will receive JSON-encoded data containing a tasks
array with the information about available locations and languages.
Field name | Type | Description |
---|---|---|
version |
string | the current version of the API |
status_code |
integer | general status code you can find the full list of the response codes here |
status_message |
string | general informational message you can find the full list of general informational messages here |
time |
string | execution time, seconds |
cost |
float | total tasks cost, USD |
tasks_count |
integer | the number of tasks in the tasks array |
tasks_error |
integer | the number of tasks in the tasks array returned with an error |
tasks |
array | array of tasks |
id |
string | task identifier unique task identifier in our system in the UUID format |
status_code |
integer | status code of the task generated by DataForSEO; can be within the following range: 10000-60000 you can find the full list of response codes here |
status_message |
string | informational message of the task you can find the full list of general informational messages here |
time |
string | execution time, seconds |
cost |
float | cost of the task, USD |
result_count |
integer | number of elements in the result array |
path |
array | URL path |
data |
object | contains the parameters passed in the URL of the GET request |
result |
array | array of results |
location_code |
integer | location code |
location_name |
string | full name of the location |
location_code_parent |
integer | the code of the superordinate location the value will be null as Country is the only supported location_type for this API |
country_iso_code |
string | ISO country code of the location |
location_type |
string | location type possible values: Country |
available_languages |
array | supported languages contains the languages which are supported for a specific location |
language_name |
string | language name |
language_code |
string | language code according to ISO 639-1 |